<?php
namespace app\admin\model;

use think\Exception;
use think\Model;

class Login extends Model{

     public static function   loginInfo($post){
       try{
           $res=Users::where('uname','=',$post['uname'])->where('upwd','=',md5($post['upwd']))->find();                       ;
       }catch (Exception $e){
           $res=false;
       }
       return $res;
     }
}